package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 会员审核任务
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-18
 */
@Entity
@Table(schema = "public", name = "ms_mc_member_validate_task")
public class MemberValidateTaskDO implements Serializable {
    private static final long serialVersionUID = -3002978086318197453L;

    public MemberValidateTaskDO() {
    }

    public MemberValidateTaskDO(String taskId, String processKey, Integer processTypeEnum) {
        this.taskId = taskId;
        this.processKey = processKey;
        this.processTypeEnum = processTypeEnum;
    }

    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="member_validate_task_seq")
    @SequenceGenerator(sequenceName="ms_mc_member_validate_task_seq", name="member_validate_task_seq",allocationSize = 1)
    private Long id;

    /**
     * 工作流任务返回的TaskId
     */
    @Column(columnDefinition = "varchar(50)")
    private String taskId;

    /**
     * 工作流的Key
     */
    @Column(columnDefinition = "varchar(50)")
    private String processKey;

    /**
     * 流程类型，定义在MemberProcessTypeEnum中
     */
    @Column
    private Integer processTypeEnum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getProcessKey() {
        return processKey;
    }

    public void setProcessKey(String processKey) {
        this.processKey = processKey;
    }

    public Integer getProcessTypeEnum() {
        return processTypeEnum;
    }

    public void setProcessTypeEnum(Integer processTypeEnum) {
        this.processTypeEnum = processTypeEnum;
    }
}
